import 'package:flutter/material.dart';

import 'package:metaera_flutter/utils/Device.dart';
import 'package:metaera_flutter/utils/Font.dart';
import 'package:metaera_flutter/utils/Color.dart';

class RegionItem extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(
        left: DeviceUtils.width16,
        right: DeviceUtils.width16,
        top: DeviceUtils.width4,
        bottom: DeviceUtils.width24,
      ),
      child: Row(
        children: [
          Expanded(
            child: GestureDetector(
              onTap: () {
                // 跳转到香港专区页面
              },
              child: Container(
                height: DeviceUtils.adaptiveSizeByScreenUtil(60),
                decoration: BoxDecoration(
                  image: DecorationImage(
                    image: NetworkImage(
                      'https://res.metaera.hk/resources/assets/images/web/home_hk_jian.png',
                    ),
                    fit: BoxFit.cover,
                  ),
                  borderRadius: BorderRadius.circular(DeviceUtils.width8),
                ),
              ),
            ),
          ),
          SizedBox(width: 12),
          Expanded(
            child: GestureDetector(
              onTap: () {
                // 跳转到美国专区页面
              },
              child: Container(
                height: DeviceUtils.adaptiveSizeByScreenUtil(60),
                decoration: BoxDecoration(
                  image: DecorationImage(
                    image: NetworkImage(
                      'https://res.metaera.hk/resources/assets/images/web/home_usa_jian.png',
                    ),
                    fit: BoxFit.cover,
                  ),
                  borderRadius: BorderRadius.circular(DeviceUtils.width8),
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
